package com.wayhome.srpingbootmybatis.excel.ali;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.Data;

import java.util.List;

@Data
public class Order {

    @Excel(name = "订单号", needMerge = true)
    private String orderNo;

    @Excel(name = "订单号", needMerge = true)
    private String customerName;

    @ExcelCollection(name = "商品明细")  // 一对多集合
    private List<Product> products;

}
